﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Service.Domain.Entities.User
{
    public class Permission
    {
        public int Id { get; set; }

        public string Code { get; set; }

        public string Label { get; set; }

        public bool IsMenu { get; set; }

        public int Pid { get; set; }

        public string Path { get; set; }

        public string ComponentPath { get; set; }

        public string BreadcrumbName { get; set; }

        public bool Valid { get; set; }

        public DateTime CreateTime { get; set; }

        public int CreateUserId { get; set; }

        public DateTime UpdateTime { get; set; }

        public int UpdateUserId { get; set; }

        public virtual IEnumerable<PermissionAction> Actions { get; set; }

        public virtual IEnumerable<Permission> Children { get; set; }
    }
}
